/***********************************************************************************
@file  
@author 
@brief  
***********************************************************************************/
#ifndef _MID_FLASH_H
#define _MID_FLASH_H
/* Private includes ----------------------------------------------------------*/
#include "main.h"
/* Private define ------------------------------------------------------------*/
#define EEPROM_ADDR0  0xFE00     //页0，0xFE00-0xFFFF
#define EEPROM_ADDR1  0xFC00     //页1，0xFC00-0xFDFF
//#define EEPROM_ADDR2  0xFA00     //页2，0xFA00-0xFBFF
/* Private typedef -----------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function ----------------------------------------------------------*/
extern void flash_init(void);
extern void flash_read(uint32_t addr,uint8_t *buf,uint16_t len);
extern uint8_t flash_write(uint32_t addr,uint8_t *buf,uint16_t len);


#endif

/**************************** (C) COPYRIGHT CX*****END OF FILE**********************/

